<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{margin: 0;padding:0}
        .search{
            margin:100px;
            width:240px;
            height: 40px;
            position: relative;

        }
        button{
            position: absolute;
            top:50%;
            margin-top: -11px;
            right:5px;
            width:23px;
            height:22px;
            background: url("images/icon4.png");
            border:none;
        }
        input{
            padding-left:20px;
            border:none;
            border-radius: 30px;
            outline:none;
            width: 220px;
            height:40px;
            background: #eee;
        }
 
       
    </style>

</head>
<body>
    <div class="search">
        <input type="text" placeholder="搜索">
        <button></button>
    </div>
</body>
</html>